<template>
  <view class="brandView">
    <view class="brandView-title">{{ mission.title }}</view>
    <view class="brandView-text">{{ mission.text }}</view>
    <el-row class="elRow" justify="center" gutter="20">
      <el-col
        :xs="24"
        :sm="12"
        :md="12"
        :lg="12"
        class="elCol"
        v-for="(item, index) in mission.list"
        :key="index"
      >
        <el-card class="brandView-list">
          <view class="brandView-list-title">{{ item.title }}</view>
          <view class="brandView-list-text">{{ item.text }}</view>
          <view class="brandView-list-ul">
            <view
              class="litem"
              v-for="(items, indexs) in item.items"
              :key="indexs"
            >
              <el-icon color="rgb(183,146,45)"><CircleCheck /></el-icon>
              <text>{{ items }}</text>
            </view>
          </view>
        </el-card>
      </el-col>
    </el-row>
  </view>
</template>

<script setup>
import { ref } from "vue";
import { CircleCheck } from "@element-plus/icons-vue";

const mission = ref({
  title: "我们的使命与愿景",
  text: "REMAX 不仅是一家地毯制造商，更是艺术与生活的连接者",
  list: [
    {
      title: "我们的使命",
      text: "通过精湛的工艺和创新的设计，为客户创造高品质、富有艺术价值的地毯产品，让每一个空间都充满独特的魅力和温暖。",
      items: [
        "坚持使用最优质的原材料，确保产品品质",
        "融合传统工艺与现代设计，创造独特的艺术价值",
        "提供个性化定制服务，满足客户的独特需求",
        "关注环保与可持续发展，推动行业进步",
      ],
    },
    {
      title: "我们的愿景",
      text: "成为全球领先的高端地毯品牌，以卓越的品质和创新的设计引领行业发展，让REMAX的地毯艺术遍布世界每一个角落。",
      items: [
        "持续创新，引领地毯设计潮流",
        "拓展全球市场，提升品牌国际影响力",
        "培养更多优秀的工艺人才，传承地毯文化",
        "建立可持续发展的商业模式，创造长期价值",
      ],
    },
  ],
});
</script>

<style scoped lang="scss">
.brandView {
  width: 100%;
  height: auto;
  color: #4b5563;

  &-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
  }
  &-text {
    font-size: 16px;
    line-height: 30px;
    text-align: justify;
    margin-bottom: 30px;
    text-align: center;
  }

  &-list {
    width: 100%;
    height: auto;
    background-color: #fff;
    border-radius: 10px;
    box-sizing: border-box;
    line-height: 1.5;
    border-radius: 10px;
    color: #4b5563;

    &-title {
      font-size: 30px;
      font-weight: 700;
      color: #4b5563;
      margin-bottom: 4px;
    }
    &-text {
      font-size: 16px;
      line-height: 26px;
      text-align: justify;
      margin-bottom: 20px;
    }

    &-ul {
      width: 100%;
      height: auto;
      display: flex;
      flex-direction: column;
      gap: 10px;

      .litem {
        font-size: 16px;
        line-height: 26px;
        display: flex;
        align-items: center;
        gap: 10px;
        color: #4b5563;
      }
    }
  }

  .elRow {
    width: 100%;
    margin: 0 auto !important;

    .elCol {
      margin-bottom: 20px;
    }
  }
}
@media screen and (max-width: 768px) {
  .brandView {
    .elCol {
      padding: 0 !important;
    }
  }
}
</style>
